package com.sanbi.erp.core.util;

import com.github.houbb.property.bs.PropertyBs;

import com.sanbi.erp.core.config.CommonConfig;

/**
 * @desc 通用配置工具类
 * @author wanggang
 * @time 2022/8/3 13:43
 */
public class CommonConfigUtil {
    /**
     * @desc 获取通用配置信息
     * @author wanggang
     * @time 2022/8/3 13:45
     */
    public static CommonConfig get(){
        CommonConfig config = new CommonConfig();
        PropertyBs.getInstance("common-config.properties").asBean(config);
        return config;
    }

    public static void main(String[] args) {
        CommonConfig config=get();
        System.out.println(config);
    }
}
